home *** CD-ROM | disk | FTP | other *** search
/ Info-Mac 3 / Info_Mac_1994-01.iso / Development / Information / Mac Programming Secrets 1.0.1 / Chapter 06 / Neat Stuff.h < prev    next >
C/C++ Source or Header  |  1992-05-19  |  1KB  |  36 lines

  1. #include "QDOffscreen.h"
  2.  
  3.  
  4. typedef struct {
  5.     WindowRecord    windowRecord;
  6.     GWorldPtr        offWorld;
  7.     Rect            selectionRect;
  8.     Boolean            antsOnTheMarch;
  9. } MyWindowRecord, *MyWindowPtr;
  10.  
  11.  
  12. void        DoMarchingAnts(void);
  13. void        KillAnts(MyWindowPtr whichWindow);
  14. void        StartAnts(MyWindowPtr whichWindow);
  15. void        DoOpenWindow(void);
  16. void        DoCloseWindow(WindowPtr theWindow);
  17. void        DoDrawGrowIcon(WindowPtr theWindow);
  18. void        DoActivateWindow(WindowPtr theWindow, Boolean activating);
  19. void        DoUpdateWindow(EventRecord *theEvent);
  20. Rect        DoContentClick(EventRecord *theEvent, WindowPtr whichWindow);
  21. Boolean        PointInSelection(WindowPtr whichWindow, Point location);
  22. void        RefreshWindow(MyWindowPtr theWindow, Rect *theRect);
  23. MyWindowPtr    CreateBufferedWindow(short width, short height, short depth);
  24. void        ReadMacPaint(FSSpec* theFile, GWorldPtr buffer);
  25.  
  26. void        DragSelectionFeedback(Point anchorPoint,
  27.                  Point nextPoint,
  28.                  Boolean turnItOn,
  29.                  Boolean mouseDidMove);
  30. void        DragSelection(WindowPtr whichWindow, Point mouse);
  31. void        PointToCurrentRect(Point currentPoint);
  32. void        UpdateBuffers(void);
  33. GWorldPtr    CloneGWorld(GWorldPtr sourceGWorld);
  34.  
  35. #define kNewWindowID        128
  36.